<script src="<?php echo base_url()?>js/jquery.min.js" type="text/javascript"></script>
<script src="<?php echo base_url()?>js/jquery-ui.min.js" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready( function() {
    $("#rec1").dialog({
		autoOpen: false,
		modal: true,
		width: '300'
	});
    $("#rec2").dialog({
		autoOpen: false,
		modal: true,
		width: '300'
	});
        $('#menu32 a').click(function() {
            // alert('test');
            var url = $(this).attr('href');
            $('#rec1').load(url);
            return false;
        });

        var s = parseInt($('#nota_count').val());
        for(var a=0;a<=s;a++){
            $('#klik'+a).click(function(){
                //if ($("#rec1").is(":hidden")) {
                $("#rec1").slideDown("slow");
                //$('#click').text('Tutup');
                //} else {
                // $("#rec1").slideUp("slow");

                //}
            });
        }
    });
</script>
<?php $this->load->helper('HTML'); 
echo link_tag('css/style2.css');
echo link_tag('images/favicon.ico','shortcut icon','image/x-icon');
?>
<h2 class="title">Detail Omset</h2>
<input type="hidden" id="nota_count" value="<?php echo count($viewpenjualanrekrut1)?>">
<table width="90%" border="1" style="font-size: 12px;" cellpadding="1" cellspacing="1" align="center">
    <tr align="center" class="" bgcolor="grey">
        <th>No. Nota</th>
        <th>Tanggal</th>
        <th>Nama Dealer</th>
        <th>Omset</th>
    </tr>

    <?php
    $i=1;
    foreach($viewpenjualanrekrut1 as $view1):?>
    <tr>
        <td>
            <div id="menu32" style="height: 20px; width: 5px">
                    <?php echo '<a href=\'javascript:void(0)\' onclick=\'view_nota("'.$view1->intno_nota.'")\'>'.$view1->intno_nota.'</a>'?>
                    <?php  //echo anchor ('calon_manager/view_nota/'.$view1->intno_nota, ($view1->intno_nota), array('id' =>"klik".$i));?>
            </div>
        </td>
        <td align="center"><?php echo date("d-m-Y",strtotime($view1->datetgl))?></td>
        <td><?php echo $view1->strnama_dealer?></td>
        <td align="center"><?php echo "Rp. " . number_format($view1->total)?></td>
    </tr>
        <?php
        $i++;
    endforeach;?>

</table>
<p>&nbsp;</p>
<p>&nbsp;</p>

